﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Qplus.Commands;
using System.Text;
using System.Collections.Generic;
using System.IO;

namespace Qplus.Command
{
    public class GetAppOptionCommand:AbsHeaderHttpCommand , HttpInputStreamProcessor{

	    const string COMMAND = "GetOtherApp";
	    /**
	     * @param uid
	     * @param UKEY
	     */
	    public GetAppOptionCommand(String uid, String UKEY)
            : base(COMMAND, uid, UKEY)
        {
	    }
	
	    /**
	     * @param uid
	     * @param UKEY
	     */
        public GetAppOptionCommand(long uid, byte[] UKEY)
            : base(COMMAND, uid.GetType().ToString(), Encoding.UTF8.GetString(UKEY, 0, 32))
        {
		    
	    }
	
	    private void setAppList(long appID, List<String> apps){
	
	    }

	    
	    public override Boolean processInputStream(Stream responseStream) {
		    return true;
	    }

	    
	    public override void onSuccess(int code) {
	    }

        public override void onFailed(int code)
        {
	    }
	
	    public HttpTask execute(String url) {
		    return base.execute(url, this);
	    }
    }
}
